<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>商品列表</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/lists.css">
</head>

<body>
    <header></header>
    <ul class="catalog">
        <div class="minglu">
            <div class="minglu_dh">
                <a href="">首页</a> > <a href="">产品名录</a>
            </div>
            <div class="minglu_nr">
                <li><a href="">全部</a></li>
                <li>/</li>
                <li><a href="">慕斯蛋糕</a></li>
                <li>/</li>
                <li><a href="">巧克力蛋糕</a></li>
                <li>/</li>
                <li><a href="">乳酪蛋糕</a></li>
                <li>/</li>
                <li><a href="">奶油蛋糕</a></li>
                <li>/</li>
            </div>
        </div>
        <ul class="cakelist">
            
        </ul>
        </div>
    </ul>
    <script type="text/html" id="listTemplate">
        {{ each list item}}
            <li>
                <div class="cake_pic">
                    <a href=""><img src="{{item.image}}" alt="" width="200" height="200"></a>
                </div>
                <div class="cake_xq">
                    <h2><a href="">{{item.title}}</a></h2>
                   
                </div>
                <div class="cake_price" style="line-height: 143px; ">  ￥{{item.price}}</div>
                <div class="cake_bt">
                    <div class="btn1">
                        <a href="/html/product.html?prodId={{item.id}}"></a> <!--  跳转到详情页面并传入参数prodId（商品编号） -->
                    </div>
                    <!-- <div class="btn2">
                        <a href=""></a>
                    </div> -->
                </div>
            </li>
        {{/each}}
    </script>

    <footer id="footer">
        
    </footer>

    <script src="/lib/require/require.js" data-main="/js/list"></script>
</body>

</html>